package com.cly.entity;

import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 评论表
 *
 * @author by 春风能解释
 * <p>
 * 2025-3-7
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Accessors(chain = true)
@Schema(name = "评论表")
public class Comment extends BaseEntity {

    /**
     * 序列化ID
     */
    @Serial
    private static final long serialVersionUID = 7710588771780915044L;
    /**
     * 资讯ID
     */
    @Schema(description = "资讯ID")
    private Long documentId;
    /**
     * 评论ID
     */
    @Schema(description = "评论ID")
    private Long commentId;
    /**
     * 评论类型(0评论,1回复)
     */
    @Schema(description = "评论类型(0评论,1回复)")
    private Integer type;
    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;
    /**
     * 评论内容
     */
    @Schema(description = "评论内容")
    private String content;
    /**
     * 点赞量
     */
    @Schema(description = "点赞量")
    private Long like;
}
